package com.结构型模型.H代理模式.JDK动态代理;

/**
 * @author zhangjiawen
 * @Date: 2022/6/6 10:41
 */
public class Test {
    public static void main(String[] args) {
        Host fangDong =new Host();
        ProxyInvocationHandler proxyInvocationHandler=new ProxyInvocationHandler();
        proxyInvocationHandler.setTarget(fangDong);
        Rent proxy =(Rent) proxyInvocationHandler.getProxy();
        proxy.rent();

    }

}
